package motor;

import java.awt.Color;
import java.awt.Graphics;

public class UniteRessource extends Unite
{
	public UniteRessource(float x, float y , int camp )
	{
		super(x, y , camp );
		
		color = Color.PINK;

		mlife = new ModuleLife(100);
		
		size = 10;
		
		ressource = true;
	}
	
	public void draw(Graphics buffer_canvas)
	{
		buffer_canvas.setColor( color );

		buffer_canvas.fillOval((int)(getPos().x-size/2), (int)(getPos().y-size/2), size , size);

	}
}
